package com.gxa.saas.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * 单位
 *
 * @Author: yx
 * @Date: 2022/6/7 11:43
 */
@AllArgsConstructor
@NoArgsConstructor
@Data
public class Measure implements Serializable {
    @ApiModelProperty(name = "id", value = "单位id", dataType = "int", required = false)
    private Integer id;
    @ApiModelProperty(name = "name", value = "单位名称", dataType = "String", required = true, allowableValues = "卷")
    private String name;
    @ApiModelProperty(name = "addTime", value = "添加时间", dataType = "Date", required = false)
    @JsonFormat(pattern = "yyyy/MM/dd HH:mm:ss", timezone = "GMT+8")
    private Date addTime;
    @ApiModelProperty(name = "isUsed", value = "是否启用", allowableValues = "false", hidden = true)
    private Boolean isUsed;
}
